// 求职攻略-列表
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:sz/components/sz-appBar.dart';

class StrategyListPage extends StatefulWidget {
  const StrategyListPage({super.key});

  @override
  State<StrategyListPage> createState() => _StrategyListPageState();
}

class _StrategyListPageState extends State<StrategyListPage> {
  int type = Get.arguments?['type'] ?? 0;
  int id = Get.arguments?['id'] ?? 0;
  String name = Get.arguments?['name'] ?? '';
  Map<String, dynamic> searchData = {};

  created() {
    switch (type) {
      case 0:
        searchData['customPlateId'] = id;
        break;
      case 1:
        searchData['category'] = 1;
        name = '职业百科';
        break;
      case 2:
        searchData['category'] = 2;
        name = '黑话词典';
        break;
      case 3:
        searchData['category'] = 3;
        name = '面试技巧';
        break;
    }
    initData();
  }

  initData() {}
  @override
  void initState() {
    created();
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: SzAppBar(title: name),
    );
  }
}
